package com.itlaobing.annotation.controller;


import com.itlaobing.annotation.entity.Student;
import com.itlaobing.annotation.service.AopStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.logging.Logger;

@Controller("aopStudentController")
public class AopStudentController {
    private Logger logger = Logger.getLogger( this.getClass().getName() );

    @Autowired
    private AopStudentService ss;

    public void signUp(Student s){
        logger.info( "学生注册" );
        ss.saveStudent(s);
    }

    public AopStudentService getSs() {
        return ss;
    }

    public void setSs(AopStudentService ss) {
        this.ss = ss;
    }
}
